import { createRouter, createWebHistory } from 'vue-router'
import Home from '../views/Home.vue'

const router = createRouter({
  history: createWebHistory(),
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home
    },
    {
      path: '/tools/subnet',
      name: 'subnet',
      component: () => import('../views/tools/SubnetCalculator.vue')
    },
    {
      path: '/tools/json',
      name: 'json',
      component: () => import('../views/tools/JsonFormatter.vue')
    },
    {
      path: '/tools/base64',
      name: 'base64',
      component: () => import('../views/tools/Base64.vue')
    },
    {
      path: '/tools/url',
      name: 'url',
      component: () => import('../views/tools/UrlCodec.vue')
    },
    {
      path: '/tools/timestamp',
      name: 'timestamp',
      component: () => import('../views/tools/Timestamp.vue')
    },
    {
      path: '/tools/regex',
      name: 'regex',
      component: () => import('../views/tools/RegexTester.vue')
    },
    {
      path: '/tools/color',
      name: 'color',
      component: () => import('../views/tools/ColorPicker.vue')
    },
    {
      path: '/tools/markdown',
      name: 'markdown',
      component: () => import('../views/tools/Markdown.vue')
    }
  ]
})

export default router 